﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlurentFiltration.Exceptions;

namespace FlurentFiltration.Visitors
{
    internal class FilterVisitor : BaseFilterVisitor
    {
        public FilterVisitor(FilterBinding filterBindings) 
            : base(filterBindings)
        {}

        public virtual IEnumerable<T> Visit<T>(IEnumerable<T> set, IFilter filter)
        {
            return VisitCollection(set, filter, typeof(IEnumerable<T>));
        }
    }
}
